package com.scjp_Java6.ExceptionHandling;

/*Define an object reference and initialize it to null. 
 * Try to call a method through this reference. 
 * Now wrap the code in a try-catch clause to catch the exception.*/
public class TIJ_Ex_4 {

	@SuppressWarnings("null")
	public static void main(String[] args) {
		A a = null;
		try {
			a.getClass();
		} catch (NullPointerException e) {
			e.printStackTrace();
		}

	}
	class A{
		
	}
}
